Skip to content

fix: auto-fix 161 Biome format and import-sort errors#126

Merged
jscraik merged 3 commits intomainfrom
fix/biome-format-main
Mar 18, 2026
Merged

fix: auto-fix 161 Biome format and import-sort errors#126
jscraik merged 3 commits intomainfrom
fix/biome-format-main

Conversation

@jscraik
Copy link
Copy Markdown
Owner

@jscraik jscraik commented Mar 17, 2026

Summary

Test plan

  • pnpm biome check passes with 0 errors
  • CI build passes

🤖 Generated with Claude Code

Run `pnpm biome check --write` to resolve formatter and organizeImports
violations across 129 files. Unblocks dependabot PRs 122, 123, 124.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 17, 2026

Required keyword not found in PR title or description.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7aa17bfe2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +16 to +17
import * as MagneticButtonStories from "../../../../packages/effects/stories/button.stories";
import * as HoloCardStories from "../../../../packages/effects/stories/card.stories";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Correct portable-story import paths to repo root

This test file lives at platforms/web/apps/storybook/tests, so ../../../../packages/... resolves to platforms/packages/..., which does not exist in this repo. Vite/Vitest will fail module resolution before running any assertions, causing @design-studio/storybook test runs to fail consistently until the path goes up one more level.

Useful? React with 👍 / 👎.


// ─── MagneticButton ───────────────────────────────────────────────────────────

const { Default: MagneticDefault, NoMagnetic, Variants } = composeStories(MagneticButtonStories);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use story exports that actually exist in effects stories

composeStories(...) is destructured with Variants here (and NonClickableCard later), but those story names are not exported by packages/effects/stories/button.stories.tsx or packages/effects/stories/card.stories.tsx. Once the import path issue is fixed, these bindings remain undefined, and render(<Variants />)/render(<NonClickableCard />) throws an invalid element type error, so the new portable tests still fail.

Useful? React with 👍 / 👎.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 18, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedinput-otp@​1.4.21001009980100
Addedhono@​4.12.7991009796100

View full report

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eea4db6c50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +33 to +36
"packages/ui/src/components/ui/chat",
"packages/ui/src/templates",
"packages/effects/stories",
];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include Holding/Components in the interaction coverage scan

platforms/web/apps/storybook/.storybook/main.ts:148-156 registers packages/ui/src/storybook/_holding/component-stories/** as live Holding/Components stories, but this new gate never scans that tree. On the current repo it reports only 4/38 files with play() (11%), even though 44 additional holding stories already have interaction tests (for example Calendar.stories.tsx and Drawer.stories.tsx), so any warning or future failure from this script is materially misleading.

Useful? React with 👍 / 👎.

Comment on lines +34 to +37
"packages/ui/src/components/ui/chat",
"packages/ui/src/templates",
"packages/effects/stories",
];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Lint the promoted Holding stories for generic play names

The Storybook config now exposes _holding/component-stories in the active sidebar (Holding/Components in platforms/web/apps/storybook/.storybook/main.ts:148-156), but this linter omits that directory from COMPONENT_ROOTS. As a result, node platforms/web/apps/storybook/scripts/story-naming-lint.mjs currently reports ✅ Story naming: no violations found. even though 21 active holding stories still use generic names like Default alongside a play() block (for example Calendar.stories.tsx and Drawer.stories.tsx).

Useful? React with 👍 / 👎.

The _holding directory contains placeholder pages importing
@design-studio/ui (self-reference) which TypeScript cannot resolve
in package-local builds. Exclude it from the typecheck scope to fix
TS2307 CI failures without adding a self-reference path alias
(which caused secondary TS6307 errors from transitive tokens sources).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jscraik jscraik merged commit e949c77 into main Mar 18, 2026
10 checks passed
@jscraik jscraik deleted the fix/biome-format-main branch March 18, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant